﻿



//





using System;
using System.Collections.Generic;

using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class AdminRoleBusiness
    {
        public int Add(AdminRole adminRole)
        {
            return new AdminRoleDAO().Add(adminRole);
        }

        public bool Delete(int Id)
        {
            return new AdminRoleDAO().Delete(Id);
        }

        public bool Update(AdminRole adminRole)
        {
            return new AdminRoleDAO().Update(adminRole);
        }

        public AdminRole GetEntity(int Id)
        {
            return new AdminRoleDAO().GetEntity(Id);
        }
        public bool IsHaveSameName(string roleName)
        {
            return new AdminRoleDAO().IsHaveSameName(roleName);
        }
        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new AdminRoleDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
    }
}
